//
//  DateUntils.h
//  DailyRecord
//
//  Created by Gin on 2022/4/6.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

#define kYYYYMM         @"yyyy-MM"

#define kYYYYMMDD       @"yyyy-MM-dd"

@interface DateUntils : NSObject

+ (NSDate *)getPriousorLaterDateFromDate:(NSDate*)date withMonth:(int)month;

/// 当前月前多少个月的 yyyymm字符串
+ (NSArray<NSString *> *)generateDateStringTypeYYYYMMPrevious:(int)month;

+ (NSArray<NSString *> *)getAllDaysWithMonth;

+ (NSString *)getCurrentYearMonth;

+ (NSString *)formatDate:(NSDate *)date withType:(NSString *)type;

+ (NSDate *)formatString:(NSString *)string withType:(NSString *)type;

@end

NS_ASSUME_NONNULL_END
